package com.tc.user.feign.controller;

import com.tc.user.feign.feign.OrderFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @Auther: tianchao
 * @Date: 2021/9/12 17:40
 * @Description:
 */
@RestController
@RequestMapping("/user")
public class UserController {
    //@Autowired
    //private RestTemplate restTemplate;

    @Autowired
    private OrderFeignService orderFeignService;
    @GetMapping("/detail")
    public String detail(){
        return "ok"+orderFeignService.detail();
    }
}
